package com.roc.steelend.controller;


import com.roc.steelend.pojo.Warehouse;
import com.roc.steelend.service.WarehouseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@Api(tags = "仓库功能接口")
public class WarehouseController {

    @Autowired
    private WarehouseService warehouseService;

    @GetMapping("/v1/warehouse/show/select")
    @ApiOperation(value = "展示所有库房",notes = "不需要值")
    public List<Warehouse> findAllWarehouse(){

        return warehouseService.findAllWareHouse();
    }
}
